orig_path=$(realpath ../static/img_original/)
js_path=$(realpath ../static/img_javascript/)

%.svg.pdf: %.svg
	inkscape -D --file=$< --export-pdf=$@

svgs: orig_svgs js_svgs

doublespace:
	cd .. && ./scripts/do.sh doublespace

orig_svgs: $(orig_path)/ch2-Z-G-65.svg.pdf \
      $(orig_path)/ch2-Z-G-59.svg.pdf \
      $(orig_path)/chip.std.svg.pdf \
      $(orig_path)/ch3-Z-G-21.svg.pdf \
      $(orig_path)/ch3-Z-G-35.svg.pdf \
      $(orig_path)/ch3-Z-G-20.svg.pdf \
      $(orig_path)/ch2-Z-G-64.svg.pdf \
      $(orig_path)/Fig5.7b.std.svg.pdf \
      $(orig_path)/ch2-Z-G-66.svg.pdf \
      $(orig_path)/ch3-Z-G-22.svg.pdf \
      $(orig_path)/ch3-Z-G-23.svg.pdf \
      $(orig_path)/preserving_table.svg.pdf \
      $(orig_path)/Fig5.2.std.svg.pdf \
      $(orig_path)/Fig5.11b.std.svg.pdf \
      $(orig_path)/ch2-Z-G-67.svg.pdf \
      $(orig_path)/ch4-Z-G-2.svg.pdf \
      $(orig_path)/ch2-Z-G-63.svg.pdf \
      $(orig_path)/ch3-Z-G-27.svg.pdf \
      $(orig_path)/ch3-Z-G-26.svg.pdf \
      $(orig_path)/ch3-Z-G-32.svg.pdf \
      $(orig_path)/ch2-Z-G-62.svg.pdf \
      $(orig_path)/ch4-Z-G-3.svg.pdf \
      $(orig_path)/ch4-Z-G-1.svg.pdf \
      $(orig_path)/ch3-Z-G-24.svg.pdf \
      $(orig_path)/ch3-Z-G-30.svg.pdf \
      $(orig_path)/ch3-Z-G-18.svg.pdf \
      $(orig_path)/ch2-Z-G-6.svg.pdf \
      $(orig_path)/ch3-Z-G-19.svg.pdf \
      $(orig_path)/ch3-Z-G-31.svg.pdf \
      $(orig_path)/ch3-Z-G-25.svg.pdf \
      $(orig_path)/Fig5.1a.std.svg.pdf \
      $(orig_path)/ch2-Z-G-12.svg.pdf \
      $(orig_path)/ch3-Z-G-3.svg.pdf \
      $(orig_path)/ch3-Z-G-2.svg.pdf \
      $(orig_path)/Fig4.4a.std.svg.pdf \
      $(orig_path)/ch2-Z-G-13.svg.pdf \
      $(orig_path)/Fig4.5a.std.svg.pdf \
      $(orig_path)/ch2-Z-G-11.svg.pdf \
      $(orig_path)/ch3-Z-G-5.svg.pdf \
      $(orig_path)/ch3-Z-G-51.svg.pdf \
      $(orig_path)/ch3-Z-G-4.svg.pdf \
      $(orig_path)/ch2-Z-G-15.svg.pdf \
      $(orig_path)/ch2-Z-G-17.svg.pdf \
      $(orig_path)/ch3-Z-G-6.svg.pdf \
      $(orig_path)/ch3-Z-G-53.svg.pdf \
      $(orig_path)/ch3-Z-G-52.svg.pdf \
      $(orig_path)/ch3-Z-G-7.svg.pdf \
      $(orig_path)/ch2-Z-G-16.svg.pdf \
      $(orig_path)/Fig5.4c.std.svg.pdf \
      $(orig_path)/ch3-Z-G-9.svg.pdf \
      $(orig_path)/ch3-Z-G-60.svg.pdf \
      $(orig_path)/ch3-Z-G-49.svg.pdf \
      $(orig_path)/ch3-Z-G-8.svg.pdf \
      $(orig_path)/ch1-Z-G-13.svg.pdf \
      $(orig_path)/ch3-Z-G-59.svg.pdf \
      $(orig_path)/ch3-Z-G-58.svg.pdf \
      $(orig_path)/ch1-Z-G-10.svg.pdf \
      $(orig_path)/ch2-Z-G-37.svg.pdf \
      $(orig_path)/ch2-Z-G-23.svg.pdf \
      $(orig_path)/Fig5.5b.std.svg.pdf \
      $(orig_path)/ch3-Z-G-14.svg.pdf \
      $(orig_path)/527table.svg.pdf \
      $(orig_path)/ch3-Z-G-15.svg.pdf \
      $(orig_path)/ch2-Z-G-51.svg.pdf \
      $(orig_path)/Fig5.14b.std.svg.pdf \
      $(orig_path)/ch2-Z-G-53.svg.pdf \
      $(orig_path)/ch1-Z-G-1.svg.pdf \
      $(orig_path)/ch3-Z-G-17.svg.pdf \
      $(orig_path)/ch3-Z-G-16.svg.pdf \
      $(orig_path)/ch2-Z-G-52.svg.pdf \
      $(orig_path)/Fig3.30.svg.pdf \
      $(orig_path)/ch2-Z-G-42.svg.pdf \
      $(orig_path)/ch3-Z-G-12.svg.pdf \
      $(orig_path)/ch3.18.svg.pdf \
      $(orig_path)/ch3-Z-G-13.svg.pdf \
      $(orig_path)/ch1-Z-G-7.svg.pdf \
      $(orig_path)/ch3-Z-G-11.svg.pdf \
      $(orig_path)/ch3-Z-G-10.svg.pdf \
      $(orig_path)/ch1-Z-G-6.svg.pdf \
      $(orig_path)/Fig4.6a.std.svg.pdf \
      $(orig_path)/ch2-Z-G-54.svg.pdf \
      $(orig_path)/Fig5.15c.std.svg.pdf \
			$(orig_path)/Fig2.9.std.svg.pdf \
			$(orig_path)/Fig2.10.std.svg.pdf \
			$(orig_path)/Fig2.11.std.svg.pdf \
			$(orig_path)/Fig2.12.std.svg.pdf \
			$(orig_path)/Fig2.14b.std.svg.pdf 

js_svgs: $(js_path)/ch2-Z-G-65.svg.pdf \
      $(js_path)/ch2-Z-G-59.svg.pdf \
      $(js_path)/ch3-Z-G-21.svg.pdf \
      $(js_path)/ch3-Z-G-20.svg.pdf \
      $(js_path)/ch2-Z-G-64.svg.pdf \
      $(js_path)/ch3-Z-G-22.svg.pdf \
      $(js_path)/ch3-Z-G-23.svg.pdf \
      $(js_path)/preserving_table.svg.pdf \
      $(js_path)/Fig5.7b.std.svg.pdf \
      $(js_path)/Fig5.11b.std.svg.pdf \
      $(js_path)/ch2-Z-G-63.svg.pdf \
      $(js_path)/ch2-Z-G-62.svg.pdf \
      $(js_path)/ch4-Z-G-1.svg.pdf \
      $(js_path)/ch4-Z-G-3.svg.pdf \
      $(js_path)/ch3-Z-G-18.svg.pdf \
      $(js_path)/ch2-Z-G-6.svg.pdf \
      $(js_path)/ch3-Z-G-19.svg.pdf \
      $(js_path)/ch3-Z-G-31.svg.pdf \
      $(js_path)/ch2-Z-G-12.svg.pdf \
      $(js_path)/ch3-Z-G-3.svg.pdf \
      $(js_path)/ch3-Z-G-2.svg.pdf \
      $(js_path)/Fig4.4a.std.svg.pdf \
      $(js_path)/ch2-Z-G-13.svg.pdf \
      $(js_path)/Fig4.5a.std.svg.pdf \
      $(js_path)/ch2-Z-G-11.svg.pdf \
      $(js_path)/ch3-Z-G-5.svg.pdf \
      $(js_path)/ch3-Z-G-4.svg.pdf \
      $(js_path)/ch2-Z-G-15.svg.pdf \
      $(js_path)/ch2-Z-G-17.svg.pdf \
      $(js_path)/ch3-Z-G-6.svg.pdf \
      $(js_path)/ch3-Z-G-7.svg.pdf \
      $(js_path)/ch2-Z-G-16.svg.pdf \
      $(js_path)/Fig5.4c.std.svg.pdf \
      $(js_path)/ch3-Z-G-9.svg.pdf \
      $(js_path)/ch3-Z-G-8.svg.pdf \
      $(js_path)/ch1-Z-G-13.svg.pdf \
      $(js_path)/ch1-Z-G-10.svg.pdf \
      $(js_path)/ch2-Z-G-37.svg.pdf \
      $(js_path)/ch3-Z-G-14.svg.pdf \
      $(js_path)/ch3-Z-G-15.svg.pdf \
      $(js_path)/ch2-Z-G-51.svg.pdf \
      $(js_path)/Fig5.14b.std.svg.pdf \
      $(js_path)/ch1-Z-G-1.svg.pdf \
      $(js_path)/ch3-Z-G-17.svg.pdf \
      $(js_path)/ch3-Z-G-16.svg.pdf \
      $(js_path)/ch3-Z-G-12.svg.pdf \
      $(js_path)/ch3.18.svg.pdf \
      $(js_path)/ch3-Z-G-13.svg.pdf \
      $(js_path)/ex1-14.svg.pdf \
      $(js_path)/ch1-Z-G-7.svg.pdf \
      $(js_path)/ch3-Z-G-11.svg.pdf \
      $(js_path)/ch3-Z-G-10.svg.pdf \
      $(js_path)/ch1-Z-G-6.svg.pdf \
      $(js_path)/Fig4.6a.std.svg.pdf \
      $(js_path)/ch2-Z-G-54.svg.pdf \
      $(js_path)/Fig5.15c.std.svg.pdf \
			$(js_path)/ch2-Z-G-ex-2-24.svg.pdf \
			$(js_path)/ch2-Z-G-ex-2-24-tree.svg.pdf \
      $(js_path)/ch3-Z-G-35.svg.pdf \
      $(js_path)/ch3-Z-G-49.svg.pdf \
			$(js_path)/Fig2.14b.std.svg.pdf 
